package com.yanqu.road.server.cmd.beautyescort;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.beautyescort.BeautyEscortProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.beautyescort.CrossBeautyEscortCacheMgr;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_BEAUTY_ESCORT_UPLOAD_VALUE, desc = "上传榜单值（按区服）")
public class CrossBeautyEscortUploadValueCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

        BeautyEscortProto.BeautyEscortUploadValueMsg uploadValueMsg = BeautyEscortProto.BeautyEscortUploadValueMsg.parseFrom(packet.getBytes());

        CrossBeautyEscortCacheMgr.addServerUploadData(uploadValueMsg, serverId);

    }

    @Override
    public void sendData() {

    }
}
